<?php $this->beginContent('/layouts/meta'); ?>
<?php $this->endContent(); ?>

<title><?php echo $this->pageTitle; ?> </title>
<!-- Bootstrap 核心 CSS -->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" rel="stylesheet">
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-reset.css" rel="stylesheet">
<!-- 字体图标 css-->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/js/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<!-- 模板样式css -->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" rel="stylesheet">
<!-- 模板自适应不同分辨率的css -->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style-responsive.css" rel="stylesheet"/>
<!-- 通知样式 -->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/js/gritter/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>
<!-- 自定义样式 -->
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/ecloud.css" rel="stylesheet">

<?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>

<!-- 左边菜单手风琴插件 -->
<script src="<?php echo Yii::app()->request->baseUrl;?>/js/bootstrap.min.js" type="text/javascript" ></script>
<script src="<?php echo Yii::app()->request->baseUrl;?>/js/jquery.dcjqaccordion.2.7.js" type="text/javascript" ></script>

<script src="<?php echo Yii::app()->request->baseUrl;?>/js/jquery.nicescroll.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/common-scripts.js" type="text/javascript"></script>

</head>

<body class="lock-screen" onload="startTime()">

<div id="time">&nbsp;</div>

<?php echo $content; ?>
</body>
<script language="JavaScript">
    // 显示时间
    function startTime() {
        var today = new Date();
        var h = today.getHours();
        var m = today.getMinutes();
        var s = today.getSeconds();
        m = checkTime(m);
        s = checkTime(s);
        $("#time").html(h + ":" + m + ":" + s);
        setTimeout(function () {
            startTime()
        }, 500);
    }

    function checkTime(i) {
        if (i < 10) {
            i = "0" + i;
        }
        return i;
    }
</script>
</html>


